import hytest

from lib.api.SClass import scm
from hytest.common import GSTORE


def suite_setup():
    ret = scm.add_class(gradeid=1, name="七一班", studentlimit=60)
    hytest.INFO(ret.json())
    GSTORE['七一班-id'] = ret.json()['id']
    GSTORE['七一班-invitecode'] = ret.json()['invitecode']


def suite_teardown():
    class_id = GSTORE['七一班-id']
    scm.delete_class(classid=class_id)
